<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
<title>Template de Pagina JSF</title>
</head>
<body>
	<f:view>
		<h:form>


			<h:selectOneMenu value="#{ProjetoBean.municipio.codigo}" onchange="submit()" valueChangeListener="#{ProjetoBean.getOrgaoPorMunicipio}">
				<f:selectItems value="#{MunicipioBean.municipiosSel }" />
			</h:selectOneMenu>

			<h:outputText value="ano" />
			<h:inputText value="#{ProjetoBean.ano}" />

			<h:selectOneMenu value="#{ProjetoBean.orgao}">
				<f:selectItems value="#{ProjetoBean.orgaoBean.orgaosSel}" />
			</h:selectOneMenu>



			<h:dataTable value="#{ProjetoBean.licitacaoBean.licitacoes}" var="o"
				border="2">

				<h:column>
					<f:facet name="header">
						<h:outputText value="Nome" />
					</f:facet>
					<h:outputText value="#{o.nome_responsavel}" />
				</h:column>

			</h:dataTable>

			<br />
			<h:commandButton value="aperte"
				action="#{ProjetoBean.ListarLicitacoes}" />

		</h:form>
	</f:view>
</body>
</html>